package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 景点视频表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-SpotVideo")
@Data
@TableName(value = "spot_video")
public class SpotVideo {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 景区id
     */
    @TableField(value = "scene_id")
    @ApiModelProperty(value="景区id")
    private String sceneId;

    /**
     * 景点id
     */
    @TableField(value = "spot_id")
    @ApiModelProperty(value="景点id")
    private String spotId;

    /**
     * 视频地址
     */
    @TableField(value = "video")
    @ApiModelProperty(value="视频地址")
    private String video;

    /**
     * 视频时长 单位秒
     */
    @TableField(value = "duration")
    @ApiModelProperty(value="视频时长 单位秒")
    private Integer duration;

    /**
     * 视频说明
     */
    @TableField(value = "video_desc")
    @ApiModelProperty(value="视频说明")
    private String videoDesc;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 是否删除，1删除，0正常
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1删除，0正常")
    private Byte isDeleted;

    @TableField(value = "upload_user_id")
    @ApiModelProperty(value="")
    private Integer uploadUserId;

    @TableField(value = "upload_user_name")
    @ApiModelProperty(value="")
    private String uploadUserName;

    /**
     * 状态，1正常 0审核中, 2审核失败
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态，1正常 0审核中, 2审核失败")
    private Byte status;

    /**
     * 视频封面
     */
    @TableField(value = "video_cover")
    @ApiModelProperty(value="视频封面")
    private String videoCover;

    /**
     * 文章id
     */
    @TableField(value = "content_id")
    @ApiModelProperty(value="文章id")
    private Long contentId;

    /**
     * 类别
     */
    @TableField(value = "super_class")
    @ApiModelProperty(value="类别")
    private String superClass;

    /**
     * 标签
     */
    @TableField(value = "label")
    @ApiModelProperty(value="标签")
    private String label;

    /**
     * 时间段 
     */
    @TableField(value = "video_time_bucket")
    @ApiModelProperty(value="时间段 ")
    private String videoTimeBucket;

    /**
     * 失败原因
     */
    @TableField(value = "fail_reason")
    @ApiModelProperty(value="失败原因")
    private String failReason;

    /**
     * 景点名称
     */
    @TableField(value = "spot_name")
    @ApiModelProperty(value="景点名称")
    private String spotName;

    /**
     * 视频大小，单位字节
     */
    @TableField(value = "size")
    @ApiModelProperty(value="视频大小，单位字节")
    private Integer size;

    public static final String COL_ID = "id";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_SPOT_ID = "spot_id";

    public static final String COL_VIDEO = "video";

    public static final String COL_DURATION = "duration";

    public static final String COL_VIDEO_DESC = "video_desc";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_UPLOAD_USER_ID = "upload_user_id";

    public static final String COL_UPLOAD_USER_NAME = "upload_user_name";

    public static final String COL_STATUS = "status";

    public static final String COL_VIDEO_COVER = "video_cover";

    public static final String COL_CONTENT_ID = "content_id";

    public static final String COL_SUPER_CLASS = "super_class";

    public static final String COL_LABEL = "label";

    public static final String COL_VIDEO_TIME_BUCKET = "video_time_bucket";

    public static final String COL_FAIL_REASON = "fail_reason";

    public static final String COL_SPOT_NAME = "spot_name";

    public static final String COL_SIZE = "size";
}